﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DCT.CodeBox.BMS.Code.DataModels
{
    /// <summary>
    /// 数据模型基类
    /// </summary>
    public abstract class BaseDataModel
    {
        /// <summary>
        /// 获取数据唯一标识
        /// </summary>
        public abstract string GetIdentifier();

        /// <summary>
        /// 创建记录时间
        /// </summary>
        public DateTime CreateDateTime { get; set; }

        /// <summary>
        /// 修改记录时间
        /// </summary>
        /// <remarks>如果没有修改过，则为null</remarks>
        public DateTime? ModifyDateTime { get; set; }

        /// <summary>
        /// 删除标记
        /// </summary>
        /// <remarks>删除记录时，均不作物理删除，标记即可</remarks>
        public bool DeleteFlag { get; set; }
    }
}